| Calendar All Tests | ||||
|
||||
| Coverage | ||||||||||||
| Classes | Methods | Lines | ||||||||||
| Total |
|
100.00% | 1 / 1 |
|
100.00% | 3 / 3 |
|
100.00% | 10 / 10 | |||
| iCalendar |
|
100.00% | 1 / 1 |
|
100.00% | 3 / 3 |
|
100.00% | 10 / 10 | |||
| public function __construct() |
|
100.00% | 1 / 1 |
|
100.00% | 2 / 2 | ||||||
| public function addEvent(iCalendarEvent $event) |
|
100.00% | 1 / 1 |
|
100.00% | 2 / 2 | ||||||
| public function formattedString() |
|
100.00% | 1 / 1 |
|
100.00% | 6 / 6 | ||||||
1 : <?php 2 : 3 : 4 : 5 : class iCalendar { 6 : 7 : private $events; 8 : 9 : public function __construct() { 10 1 : $this->events = array(); 11 1 : } 12 : 13 : public function addEvent( iCalendarEvent $event ) { 14 1 : $this->events[] = $event; 15 1 : } 16 : 17 : public function formattedString() { 18 1 : $str = "BEGIN:VCALENDAR\nVERSION:2.0\n"; 19 : 20 1 : foreach ($this->events as $event) { 21 1 : $str .= $event->formattedString(); 22 1 : } 23 : 24 1 : $str .= "END:VCALENDAR"; 25 : 26 1 : return $str; 27 : } 28 : } |
| Generated by PHPUnit 3.2.21 and Xdebug 2.0.3 at Thu Nov 26 17:01:15 CET 2009. |